<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue</title>
    <style>
      .basic{
        background-color: pink;
      }
      .active{
        color: red;
      }
      .inActive{
        color:green;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div :class="{active:isActive,inActive:!isActive}">hello</div>
      <div :class="['basic',{active:!isActive}]">world</div>
    </div>
    <script src="vue.js"></script>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
         isActive:false
        },
      });
    </script>
  </body>
</html>
